package aNN;

public class SecondOrderBackpropagationThread extends Thread {
	public NeuralNetwork nn;
	public double eta;
	public boolean completed = false;
	
	public SecondOrderBackpropagationThread(NeuralNetwork nn, double eta)
	{
		this.nn = nn;
		this.eta = eta;
	}
	
	public SecondOrderBackpropagationThread(NeuralNetwork nn)
	{
		this.nn = nn;
	}
	
	public void LoadParams(double eta)
	{
		this.eta = eta;
		this.completed = false;
	}
	
	public void run()
	{
		nn.SecondOrderBackPropagate(eta);
		completed = true;
	}
}
